<script language="javascript" src="<?php echo base_url(); ?>application/views/cirugia/funcionAuxiliares.js"></script>
<?php
function llenarComboMedicamentos2($Medicamentos){
    foreach ($Medicamentos as $row)
    {
        echo "<option value='".$row['value']."'> ".$row['label']."</option>";
    }           
}
?>
<form class="form-horizontal well">
    <table>
        <tbody>
         <td>   
             <div class='control-group'>
            <label class='control-label' for='codOr'>Cod. Orden</label>
            <div    class='controls'><input type='text' class='input'
                    name='codOr' id='codOr'
                    value='<?php echo $codOrd?>' readonly="readonly"></div>
            </div>
             <div class='control-group'>
            <label class='control-label' for='estado'>Estado</label>
            <div    class='controls'><input type='text' class='input'
                    name='estado' id='estado'
                    value='<?php echo $EstOrd?>' readonly="readonly"></div>
            </div>
             <div class='control-group'>
            <label class='control-label' for='codPac'>Cod. Paciente</label>
            <div    class='controls'><input type='text' class='input'
                    name='codPac' id='codPac'
                    value='<?php echo $codPac?>' readonly="readonly"></div>
            </div>
             <div class='control-group'>
            <label class='control-label' for='nomPac'>Nom. Paciente</label>
            <div    class='controls'><input type='text' class='input'
                    name='nomPac' id='nomPac'
                    value='<?php echo $NomPac?>' readonly="readonly"></div>
            </div>

    <p><button class="btn btn-mini  btn btn-success" type="button" onclick="buscarorden()">Buscar Orden</button></p>
        </td><td> 
        <div class='control-group'>
            <label class='control-label' for='nomEsp'>Espec. Cirugia</label>
            <div    class='controls'><input type='text' class='input'
                    name='nomEsp' id='nomEsp'
                    value='<?php echo $nomEspe?>' readonly="readonly">                    
            </div>           
            </div>
            <input type="hidden" name="Esp" id="especial" value="<?php echo $esp?>">
        <?php         
        $option=array(array('value'=>'Limpia','label'=>'Limpia'),
                array('value'=>'limpia-contaminada','label'=>'limpia-contaminada'),
                array('value'=>'contaminada ','label'=>'contaminada '),
                array('value'=>'sucia','label'=>'sucia'))?>
        <div class='control-group'>
    	<label class='control-label' for='cat'>Clasif. Cirugia</label>
    	<div class='controls'>
            <select name="cat" style='width:180px' data-placeholder='Seleccione Categoría'  id="cat" class="span9"> 
            <?php llenarComboMedicamentos2($option) ?>
            </select>
        </div></div>
        <?php $option=array(array('value'=>'Cirugia Menor','label'=>'Cirugia Menor'),array('value'=>'Cirugia Mayor','label'=>'Cirugia Mayor'),array('value'=>'Electiva','label'=>'Electiva'),array('value'=>'Necesaria','label'=>'Necesaria'),array('value'=>'Urgencia','label'=>'Urgencia'));                   
        ?>
         <div class='control-group'>
             <label class='control-label' for='tipo'>Tipo Cirugia</label>
    	<div class='controls'>
            <select name="tipo" style='width:180px' data-placeholder='Seleccione Tipo'  id="tipo" class="span9"> 
            <?php llenarComboMedicamentos2($option) ?>
            </select>
        </div></div>
        </td>
        
        
    </tbody>
    </table>


